package SV_EXEC_ENV;

import javax.servlet.ServletRequest;
import java.io.IOException;

public class Example {
    public void dataQuery(ServletRequest req) throws IOException {
        String var = "USER_HOME=" + req.getParameter("username");
        String[] env = new String[]{var};
        Process proc = Runtime.getRuntime().exec("processRequest", env);
        // parse results of command
        // ...
    }
}
